import request from "@/request/api";
/* 工单变更 */
// 查询分页列表
export function queryPageList(data) {
  return request({
      url: "/eam-service-order/orderChange/queryPageList",
      method: "get",
      params: data,
  });
}
// 根据id查询
export function getDetailsApi(id = "") {
  return request({
      url: "/eam-service-order/orderChange/queryById",
      method: "get",
      params: {
          id
      },
  });
}
//删除单个工单
export function deleteApi(id='') {
  return request({
    url: "/eam-service-order/orderChange/deleteById",
    method: "delete",
    params:{id},
  });
}
//新增
export function saveOrUpdate(data) {
  return request({
    url: "/eam-service-order/orderChange/insertOrUpdate",
    method: "post",
    data: data,
  });
}